package com.lyEducation.util.jwt;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
@PropertySource("classpath:jwttokenconfig.properties")
@ConfigurationProperties(prefix = "jwttokenconfig")
public class JwttokenconfigBean {
  private String sub;
  private String author;
  private int price;
  private String clientId;

  private String header;

  private String tokenHead;

  // base64密匙

  private String base64Secret;

  // token 有效时间
  private long effectiveTime;
  //  指定token在該时间内需要刷新
  private long refreshTime;
  // 签发者
  private String iss;

  public String getAuthor() {
    return author;
  }

  public void setAuthor(String author) {
    this.author = author;
  }

  public int getPrice() {
    return price;
  }

  public void setPrice(int price) {
    this.price = price;
  }

  public String getClientId() {
    return clientId;
  }

  public void setClientId(String clientId) {
    this.clientId = clientId;
  }

  public String getHeader() {
    return header;
  }

  public void setHeader(String header) {
    this.header = header;
  }

  public String getTokenHead() {
    return tokenHead;
  }

  public void setTokenHead(String tokenHead) {
    this.tokenHead = tokenHead;
  }

  public String getBase64Secret() {
    return base64Secret;
  }

  public void setBase64Secret(String base64Secret) {
    this.base64Secret = base64Secret;
  }

  public long getEffectiveTime() {
    return effectiveTime;
  }

  public void setEffectiveTime(long effectiveTime) {
    this.effectiveTime = effectiveTime;
  }

  public String getIss() {
    return iss;
  }

  public void setIss(String iss) {
    this.iss = iss;
  }

  public String getSub() {
    return sub;
  }

  public void setSub(String sub) {
    this.sub = sub;
  }

  public long getRefreshTime() {
    return refreshTime;
  }

  public void setRefreshTime(long refreshTime) {
    this.refreshTime = refreshTime;
  }
}
